home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / acpi / resume.d / 50-tosh-restore-brightness.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2008-10-14  |  304b  |  13 lines

  1. #!/bin/sh
  2.  
  3. if [ "x$TOSH_BRIGHTNESS" != "x" ]; then
  4.   # To reset the brightness...
  5.   echo 'brightness : '$TOSH_MAXBRIGHT > $TOSH_LCD
  6.   echo 'brightness : 0' > $TOSH_LCD
  7.   # And then restore it...
  8.   echo 'brightness : '$TOSH_BRIGHTNESS > $TOSH_LCD
  9.   unset TOSH_BRIGHTNESS TOSH_MAXBRIGHT
  10. fi
  11.  
  12. unset TOSH_LCD
  13.